asBoolean

public abstract boolean asBoolean()

Returns the XPath result represented as a boolean.

Throws

if the result is not of a boolean type (see isBoolean)

when the document this instance belongs to is closed